Skip to content

use allowance holder api for 0x v2 eip5792 txs #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mintdart
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Jun 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
llamaswap ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2025 5:35pm

Copy link

cloudflare-workers-and-pages bot commented Jun 21, 2025

Deploying llamaswap with  Cloudflare Pages  Cloudflare Pages

Latest commit: 48789a7
Status: ✅  Deploy successful!
Preview URL: https://4c36976e.llamaswap.pages.dev
Branch Preview URL: https://0x-v2-allowance-holder.llamaswap.pages.dev

View logs

if (!signature) {
throw { reason: 'Signature is required' }
if (rawQuote.isSignatureNeededForSwap && tokens.fromToken.address !== zeroAddress && !signature) {
throw { reason: 'Signature is required' };
}

const signatureLengthInHex = numberToHex(size(signature), {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when signature is empty, does this work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if signature is empty it will throw error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants